package com.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.entity.SupplierGoods;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * (SupplierGoods)表数据库访问层
 *
 * @author makejava
 * @since 2020-11-21 10:12:55
 */
@Mapper
public interface SupplierGoodsMapper extends BaseMapper<SupplierGoods> {
    //查询商品列表
    List<SupplierGoods> getGoodsList(Integer categoryId, Integer supplierId);
    //通过商品类别id查询该商户下所有商品
    List<SupplierGoods> getGoodsListByCategoryId(int id);
    //高级检索
    List<SupplierGoods> superSearch(String superSearchKeyWord);
    //修改商品
    int updateByGoodsId(SupplierGoods supplierGoods);
    //添加商品
    int insertGoods(SupplierGoods supplierGoods);

    List<SupplierGoods> showGoodsList(SupplierGoods model);
}
